#include "point.h"

Point::Point() : x(0), y(0) {}

Point::Point(int x, int y) : x(x), y(y) {}

Point Point::add(Direction& direction) {
    return Point(x + direction.x, y + direction.y);
}